import { request } from '@/utils/request'

// 查询车损列表
export function listCarDamage(query) {
  return request({
    url: '/system/carDamage/list',
    method: 'get',
    params: query
  })
}

// 查询车损详细
export function getCarDamage(id) {
  return request({
    url: '/system/carDamage/' + id,
    method: 'get'
  })
}

// 新增车损
export function addCarDamage(data) {
  return request({
    url: '/system/carDamage',
    method: 'post',
    data: data
  })
}

// 修改车损
export function updateCarDamage(data) {
  return request({
    url: '/system/carDamage',
    method: 'put',
    data: data
  })
}

// 删除车损
export function delCarDamage(id) {
  return request({
    url: '/system/carDamage/' + id,
    method: 'delete'
  })
}
